package patterns.actions.mediator;

public class ConcreteMediator extends Mediator {
	private ConcreteColleague1 cc1;
	private ConcreteColleague2 cc2;

	public ConcreteColleague1 getCc1() {
		return cc1;
	}

	public ConcreteColleague2 getCc2() {
		return cc2;
	}

	@Override
	public void colleagueChanged(Colleague c) {
		cc1.action();
		cc2.action();
	}

	public void createConcreteMediator() {
		cc1 = new ConcreteColleague1(this);
		cc2 = new ConcreteColleague2(this);
	}

}
